Skip to content

fix(bundler-plugins): integration with monorepo#21342

Open
isaacs wants to merge 737 commits into
developfrom
feat/merge-in-sentry-javascript-bundler-plugins
Open

fix(bundler-plugins): integration with monorepo#21342
isaacs wants to merge 737 commits into
developfrom
feat/merge-in-sentry-javascript-bundler-plugins

Conversation

@isaacs
Copy link
Copy Markdown
Member

@isaacs isaacs commented Jun 4, 2026

Note: the commit log in this PR is ridiculous, because it intentionally preserves the history of the sentry-javascript-bundler-plugins repo. Probably best to review locally. Attempting to do a rebase or squash merge will probably break GitHub and maybe the world 😅

Integrate the newly merged in @sentry/bundler-plugins project to the
sentry-javascript monorepo.

  • Integration tests are updated to use the named submodule exports on
    the @sentry/bundler-plugins package, rather than the per-platform
    re-export shims.
  • Lint and naming conventions brought in line with project standards.
  • Bundler-plugins integration tests now run on CI.

The version has not been updated from its independent 5.x line, though
it may be a good idea to bump it up to align with the 10.x line that the
rest of the monorepo uses.

Luca Forstner and others added 30 commits January 9, 2025 13:24
Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
…ludeTracing` (#644)

Co-authored-by: Luca Forstner <luca.forstner@sentry.io>
Revert the default behaviour of the webpack plugin to no longer exit the process. Instead, users can set an experimental flag to force exiting the process.
…terUpload` (#677)

Widen the accepted type for `filesToDeleteAfterSourcemaps` to allow us (as well as users) to pass in a `Promise<string | string[]>` to do so. This promise can resolve whenever we know what to set and we await the promise before calling `glob` to get all file paths to delete.
Update changelog for 3.2.0
timfish and others added 5 commits May 22, 2026 14:05
Consolidate all bundler plugin code into a single new
`@sentry/bundler-plugins` package with subpath exports
(`/rollup`, `/webpack`, `/vite`, etc.). Code was moved using `git
mv` to preserve history.

The existing bundler-specific packages (`@sentry/rollup-plugin`,
etc.) become thin stubs that re-export from
`@sentry/bundler-plugins`. This makes it straightforward to:

- Add new bundler support (e.g. rolldown) without publishing a
  new package
- Move all plugin code in the JS monorepo as a single dependency
  rather than 6
- Keep bundler-specific packages at v5, avoiding unnecessary
  major version bumps for users

Individual packages can eventually be deprecated but there's no
urgency — integration tests still target them and they remain
fully functional.
- Remove all contents that are not going to be ported to the
  sentry-javascript monorepo.
- Move the integration tests into a suitable location.
@isaacs isaacs requested a review from timfish June 4, 2026 21:28
Comment thread yarn.lock Outdated
Comment thread dev-packages/bundler-plugin-integration-tests/fixtures/utils.ts Dismissed
Comment thread packages/bundler-plugins/src/core/utils.ts Fixed
Copy link
Copy Markdown
Collaborator

@timfish timfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from 2da5301 to 936498f Compare June 4, 2026 23:40
Comment thread dev-packages/bundler-plugin-integration-tests/fixtures/utils.ts
@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from 936498f to 8046230 Compare June 5, 2026 00:01
@chargome chargome requested review from Lms24 and chargome June 5, 2026 11:56
@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from 8046230 to 4008b69 Compare June 5, 2026 14:01
Comment thread dev-packages/bundler-plugin-integration-tests/fixtures/esbuild/package.json Outdated
Comment thread dev-packages/bundler-plugin-integration-tests/fixtures/rolldown/utils.ts Outdated
Comment thread packages/bundler-plugins/sentry-esbuild-debugid-injection-file.js
@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from 4008b69 to 1fe3d0c Compare June 5, 2026 14:25
Comment thread packages/bundler-plugins/src/core/options-mapping.ts Outdated
Comment thread packages/bundler-plugins/src/core/build-plugin-manager.ts
@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from 1fe3d0c to 6882d3e Compare June 5, 2026 15:05
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 3 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6882d3e. Configure here.

Comment thread package.json
@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch 2 times, most recently from 2420de2 to a37151b Compare June 5, 2026 15:31
Comment thread packages/bundler-plugins/src/webpack/webpack4and5.ts
@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from a37151b to 2d30000 Compare June 5, 2026 15:54
Comment thread packages/bundler-plugins/src/babel-plugin/index.ts
isaacs added 2 commits June 5, 2026 10:03
Integrate the newly merged in `@sentry/bundler-plugins` project to the
sentry-javascript monorepo.

- Integration tests are updated to use the named submodule exports on
  the `@sentry/bundler-plugins` package, rather than the per-platform
  re-export shims.
- Lint and naming conventions brought in line with project standards.
- Bundler-plugins integration tests now run on CI.
- Aligned on the same vitest version for bundler-plugins and the rest of
  the repo. It might be good to upgrade vitest, but not needed for this
  merge.

The version has not been updated from its independent 5.x line, though
it may be a good idea to bump it up to align with the 10.x line that the
rest of the monorepo uses.
@isaacs isaacs force-pushed the feat/merge-in-sentry-javascript-bundler-plugins branch from 2d30000 to 239808f Compare June 5, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.